Telegram Group & Telegram Channel
Python dasturlash maktabi
⭕️ 2-bo'lim “Operatorlar” ————————————— Ⓜ️Operatorlar guruhlari? ----------------------------- Pythonda operatorlar quyidagi guruhga bo'linadi. Arifmetik operatorlar Tayinlash operatorlari Taqqoslash operatorlari Mantiqiy operatorlar Identifikatsiya operatorlari…
Ⓜ️ A'zolik operatorlari
A'zolik operatorlari ob'ektda ketma-ketlik mavjudligini tekshirish uchun ishlatiladi:

satr =  'salom dunyo 22'
list = ['salom dunyo', 'hello world', 22, '33']

in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topsa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('salom' in satr) True
print('salom' in list) False
print('salom dunyo' in list) True
print(22 in satr) Error
print(33 in list) False

not in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topmasa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('hello' not in satr) True
print('salom' not in list) True
print('salom dunyo' not in list) False
print(22 not in list) False

@pythonuz



tg-me.com/pythonuz/307
Create:
Last Update:

Ⓜ️ A'zolik operatorlari
A'zolik operatorlari ob'ektda ketma-ketlik mavjudligini tekshirish uchun ishlatiladi:

satr =  'salom dunyo 22'
list = ['salom dunyo', 'hello world', 22, '33']

in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topsa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('salom' in satr) True
print('salom' in list) False
print('salom dunyo' in list) True
print(22 in satr) Error
print(33 in list) False

not in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topmasa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('hello' not in satr) True
print('salom' not in list) True
print('salom dunyo' not in list) False
print(22 not in list) False

@pythonuz

BY Python dasturlash maktabi


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonuz/307

View MORE
Open in Telegram


Python dasturlash maktabi Telegram | DID YOU KNOW?

Date: |

That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.

The lead from Wall Street offers little clarity as the major averages opened lower on Friday and then bounced back and forth across the unchanged line, finally finishing mixed and little changed.The Dow added 33.18 points or 0.10 percent to finish at 34,798.00, while the NASDAQ eased 4.54 points or 0.03 percent to close at 15,047.70 and the S&P 500 rose 6.50 points or 0.15 percent to end at 4,455.48. For the week, the Dow rose 0.6 percent, the NASDAQ added 0.1 percent and the S&P gained 0.5 percent.The lackluster performance on Wall Street came on uncertainty about the outlook for the markets following recent volatility.

Python dasturlash maktabi from no


Telegram Python dasturlash maktabi
FROM USA